<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 两栏布局之定宽+自适应：table布局 */
        .container{
            height: 200px;
            display: table;
            width: 100%;
        }
        .left{
            background-color: red;
            width: 250px;
            display: table-cell;
        }
        .right{
            background-color: green;
            display: table-cell;
        }
        
    </style>
</head>
<body>
    <div class="container">
        <div class="left">left</div>
        <div class="right">
            right
        </div>
    </div>
</body>
</html>